package model

/**
 * @Description
 * @Author huan.wang
 * @Date 2021/5/6 6:45 下午
 **/

type Result struct {
	State   int         `json:"code"`
	Message string      `json:"message,omitempty"`
	Data    interface{} `json:"data,omitempty"`
}

func NewMessageResult(state int,message string) *Result {
	return &Result{State: state, Message:message}
}
func NewMessageDataResult(state int,message string,data interface{}) *Result  {
	return &Result{State: state, Message:message,Data: data}
}
